package com.whq.thrift.api.gateway.service;

import com.whq.thrift.api.gateway.db.MethodInfo;

public interface VerifyDbService {
	public void getDataFromDbToCache();
	
	public String getMerchantSignatureKey(String merchantName);
	
	/**
	 * 判断商户是否有接口的访问权限
	 * @param merchantName
	 * @param apiMethod
	 * @param ip
	 * @return
	 */
	public boolean chkMerchantApiPermissionValid(String merchantName, String apiMethod, String ip);
	
	/**
	 * 根据方法名获取方法信息
	 * @param apiMethod
	 * @return
	 */
	public MethodInfo getMethodInfo(String apiMethod);
}
